package com.atlin.project.service;


import com.atlin.project.model.domain.SysNotification;
import com.atlin.project.model.domain.TempTemplate;
import com.atlin.project.model.dto.sysNotification.SysNotificationQueryRequest;
import com.atlin.project.model.dto.tempTemplate.TempTemplateQueryRequest;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @author atlin
 * @description 针对表【sys_notification(系统通知表)】的数据库操作Service
 * @createDate 2024-11-18 16:21:55
 */
public interface SysNotificationService extends IService<SysNotification> {

    /**
     * 给用户发送通知消息
     *
     * @param userId  用户id
     * @param message 消息体
     */
    void notifyUser(long userId, String title, String message);

    /**
     * 获取查询条件
     *
     * @param sysNotificationQueryRequest
     * @return
     */
    QueryWrapper<SysNotification> getQueryWrapper(SysNotificationQueryRequest sysNotificationQueryRequest);

}
